#ifndef __COMMON_DEF_H__
#define __COMMON_DEF_H__

//common return values
#ifndef OK
#define OK		0
#endif
#ifndef ERROR
#define ERROR		1
#endif

#if _DEBUG_
#define __DEBUG__
#endif

///////////////////////////////log -------recorder////////////////
#define LOG_SEP	" "
#define LOG_TIME_UNIT	"microminutes"
#define MAX_FILE_PATH	512	
#define DEFAULT_LOG_MAX_LINE	1024


//////////////////////////////mem pool ////////////////////////
#define MEM_POOL_DEFAULT_CHUNK_SIZE	128 //128bytes
#define MEM_POOL_DEFAULT_MEM_SIZE	64*1024 //64k
#define MEM_POOL_MAX_ALLOC_CHUNK_COUNT	0xFF //

#define MEM_POOL_INIT_YES 1
#define MEM_POOL_INIT_NO 0


#endif
